Method and device for displaying icon badge

ABSTRACT

A method for displaying a badge of an icon is disclosed. The method may comprise acquiring feature information of the icon; determining a display element of the badge according to the acquired feature information; and generating and displaying the badge according to the determined display element, at a preset position of the icon.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims priority to Chinese PatentApplication No. 201510441327.7, filed Jul. 24, 2015, the entire contentsof which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to the technical field of icon displayand, more particularly, to a method and a device for displaying a badgeof an icon.

BACKGROUND

In smart phones, when an application receives a message, a badge mayappear on the upper right corner of the application's icon, for example,as a superscript number. The badge may serve to notify a user of thereceived message.

In current Android or iOS system, badge colors and patterns may beconsistent for all applications. For instance, the badge color andpattern in the iOS system include a white number in a red backgroundencircled by a white border.

SUMMARY

One aspect of the present disclosure is directed to a method fordisplaying a badge of an icon. The method may comprise acquiring featureinformation of the icon; determining a display element of the badgeaccording to the acquired feature information; and generating anddisplaying the badge according to the determined display element, at apreset position of the icon.

Another aspect of the present disclosure is directed to a device fordisplaying a badge of an icon. The device may comprise a processor and amemory for storing instructions executable by the processor. Theprocessor may be configured to acquire feature information of the icon;determine a display element of the badge according to the acquiredfeature information; and generate and display the badge, according tothe determined display element, at a preset position of the icon.

Another aspect of the present disclosure is directed to a non-transitorycomputer-readable storage medium having stored therein instructionsthat, when executed by a processor in a terminal device, cause theterminal device to perform a method for displaying a badge of an icon.The method may comprise acquiring feature information of the icon;determining a display element of the badge according to the acquiredfeature information; and generating and displaying the badge, accordingto the determined display element, at a preset position of the icon.

It is to be understood that both the foregoing general description andthe following detailed description are exemplary and explanatory onlyand are not restrictive of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification, illustrate embodiments consistent with theinvention and, together with the description, serve to explain theprinciples of the invention.

FIG. 1 is a flow chart illustrating a method for displaying a badge ofan icon, according to an exemplary embodiment.

FIG. 2 is a flow chart illustrating a method for displaying a badge ofan icon, according to an exemplary embodiment.

FIG. 3 is a flow chart illustrating a method for displaying a badge ofan icon, according to an exemplary embodiment.

FIG. 4 is a flow chart of illustrating a method for displaying a badgeof an icon, according to an exemplary embodiment.

FIG. 5 is a flow chart of illustrating a method for displaying a badgeof an icon, according to an exemplary embodiment.

FIG. 6 is a flow chart illustrating a step in a method for displaying abadge of an icon, according to the exemplary embodiment.

FIG. 7 is a flow chart illustrating a step in a method for displaying abadge of an icon, according to the exemplary embodiment.

FIG. 8 is a block diagram illustrating a device for displaying a badgeof an icon, according to an exemplary embodiment.

FIG. 9 is a block diagram illustrating an acquisition module in a devicefor displaying a badge of an icon, according to an exemplary embodiment.

FIG. 10 is a block diagram illustrating an acquisition module in adevice for displaying a badge of an icon, according to an exemplaryembodiment.

FIG. 11 is a block diagram illustrating an acquisition module in adevice for displaying a badge of an icon, according to an exemplaryembodiment.

FIG. 12 is a block diagram illustrating a device applicable fordisplaying a badge of an application, according to an exemplaryembodiment.

DETAILED DESCRIPTION

Reference will now be made in detail to exemplary embodiments, examplesof which are illustrated in the accompanying drawings. The followingdescription refers to the accompanying drawings in which the samenumbers in different drawings represent the same or similar elementsunless otherwise represented. The implementations set forth in thefollowing description of exemplary embodiments do not represent allimplementations consistent with the invention. Instead, they are merelyexamples of devices and methods consistent with some aspects related tothe invention as recited in the appended claims.

FIG. 1 is a flow chart illustrating a method 100 for displaying a badgeof an icon, according to an exemplary embodiment. As shown in FIG. 1,the method 100 for displaying a badge of an icon can be implemented by aterminal device such as a mobile phone, a camera, a tablet, or anapplication, and may include the following steps S101-S103.

In step S101, when generating a badge of an icon, feature information ofthe icon is acquired. In some embodiments, icons of some applicationsmay be on a system desktop, or saved in a folder. Therefore, the iconmay be an application icon, an application folder icon, or another typeof icon. Accordingly, the badge of the icon may be a badge of theapplication icon, a badge of the application folder icon, or a badge ofanother type of icon. The application icon can be a shortcut icon of theapplication, and when the application icon is double-clicked, theapplication may be started.

In step S102, a display element of the badge is determined according tothe acquired feature information. The display element of the badge mayinclude one or more of a shape of the badge, a background color of thebadge, a color of a character in the badge, and a font of a character inthe badge. The display element of the badge may also include one or moreof a color of the badge border (a border of the badge), a width of thebadge border, and a shape of the badge border.

In step S103, the badge according to the determined display element isgenerated and displayed at a preset position of the icon.

In one embodiment, when generating a badge of an icon, the displayelement of the badge can be determined according to the featureinformation of the icon, and the badge can be generated and displayed atthe preset position of the icon according to the determined displayelement. Thus, the badge of the icon can be displayed in differentstyles for different applications, easing the visual fatigue from aflood of similar badges on the desktop.

FIG. 2 is a flow chart illustrating a method 200 for displaying a badgeof an icon, according to an exemplary embodiment. As shown in FIG. 2,the method 200 for displaying a badge of an icon can be implemented by aterminal device such as a mobile phone, a camera, a tablet, or anapplication, and may include the following steps S201-S204.

In step S201, when generating a badge of an icon, feature information ofthe icon is acquired. In some embodiments, icons of some applicationsmay be on a system desktop, or saved in a folder. Therefore, the iconmay be an application icon, an application folder icon, or another typeof icon. Accordingly, the badge of the icon may be a badge of theapplication icon, a badge of the application folder icon, or a badge ofanother type of icon. The application icon can be a shortcut icon of theapplication, and when the application icon is double-clicked, theapplication may be started.

In step S202, a display element including at least one of a shape of thebadge, a background color of the badge, a color of a character in thebadge, or a font of a character in the badge is determined according tothe feature information of the icon. That is, the display element of thebadge may include one or more of the shape of the badge, the backgroundcolor of the badge, the color of the character in the badge, and thefont of the character in the badge.

In step S203, the display element further including at least one of aborder of the badge, a width of the border, or a shape of the border isdetermined according to the feature information of the icon. That is,the display element of the badge may further include one or more of thecolor of the badge border, the width of the badge border, and the shapeof the badge border.

In step S204, the badge according to the determined display element isgenerated and displayed at a preset position of the icon. The step mayfurther include generating and displaying the badge border, e.g.,generating and displaying the badge border according to the color of thebadge border, the width of the badge border, and/or the shape of thebadge border described above. For example, if the background color ofthe badge is a first color (red), in order to distinguish from theapplication icon, a second color (white) having a width of N pixels canbe used as the badge border.

Thus, the generated badge border can look more obvious.

FIG. 3 is a flow chart illustrating a method 300 for displaying a badgeof an icon, according to an exemplary embodiment. As shown in FIG. 3,the method 300 for displaying a badge of an icon can be implemented by aterminal device such as a mobile phone, a camera, a tablet, or anapplication, and may include the following steps S301-S303.

In step S301, when generating a badge of an icon, an application typecorresponding to the icon is acquired. The icon may be an applicationicon, an application folder icon, or another type of icon. Accordingly,the badge may be a badge of the application icon, a badge of theapplication folder icon, or a badge of other icon.

In step S302, a display element of the badge is determined according toa preset corresponding relationship between the acquired applicationtype and the display element. The display element of the badge mayinclude one or more of a shape of the badge, a background color of thebadge, a color of a character in the badge, and a font of a character inthe badge. The display element of the badge may also include one or moreof a color of the badge border, a width of the badge border, and a shapeof the badge border.

In some embodiments, the step S302 may further include the following.

First, application programs or application folders can be classified inadvance. For example, the applications or programs may be classifiedinto video type, communication type, work type, or the like according tofunctions. The applications may also be classified according tostandards such as user habits, frequencies of use, or time periods ofusing the application programs. Accordingly, for example, theapplications may be classified into work type, leisure type, or thelike. The type of the application folder may be determined according totypes of the applications included in the application folder. Forexample, the application folders may be classified into video type,communication type, work type, or the like. Moreover, the applicationfolders may also be classified according to standards such as userhabits, frequency of use, or time periods of using the applicationprograms in the folders. Similarly, for example, the application foldersmay be classified into work type, leisure type, or the like.

Second, a corresponding relationship between the various applicationtypes and the various display elements of the badge can be established.For example, when a corresponding relationship between a communicationapplication and a display element is established, a background color ofthe badge corresponding to a communication application can be red, acolor of a character in the corresponding badge can be black, and a fontof a character in the corresponding badge can be Song typeface. If thedisplay element of the badge corresponding to the communicationapplication further includes one or more of a color of the badge border,a width of the badge border, and a shape of the badge border, the colorcan be white, the width can be three pixels, and the shape can berectangle.

Third, a display element of the badge can thus be determined accordingto the preset corresponding relationship between the application typeand the display element.

In step S303, a badge is generated and displayed at a preset position ofthe icon, according to the determined display element. For example, whenthe current application type is a communication type, the displayelement may include a background color of the badge being red, a colorof a character in the badge being black, a font of a character in thebadge being Song typeface, a color of the badge border being white, awidth of the badge border being three pixels, and a shape of the badgeborder being rectangle, and the badge may be displayed according to thedisplay element.

As described, different display styles may be used for badges ofdifferent applications according to application types, thus improvingthe user experience.

FIG. 4 is a flow chart illustrating a method 400 for displaying a badgeof an icon, according to an exemplary embodiment. As shown in FIG. 4,the method 400 for displaying a badge of an icon can be implemented by aterminal device, such as a mobile phone, a camera, a tablet, or anapplication, and may include the following steps S401-S403.

In step S401, when generating a badge of an icon, a priority level of anapplication corresponding to the icon is acquired. The icon may be anapplication icon, an application folder icon, or another type of icon.Accordingly, the badge of the icon may be a badge of the applicationicon, a badge of the application folder icon, or a badge of another typeof icon.

In step S402, a display element of a badge of the icon is determinedaccording to a preset corresponding relationship between the acquiredpriority level and the display element. The display element of the badgemay include one or more of a shape of the badge, a background color ofthe badge, a color of a character in the badge, and a font of acharacter in the badge. The display element may also include one or moreof a color of the badge border, a width of the badge border, and a shapeof the badge border.

The step 402 may further include the following.

First, various priority levels of applications or application folderscan be determined in advance. For example, priority levels of one ormore applications most frequently used can be set to the highestaccording to a use habit or a use frequency.

Second, a corresponding relationship between the priority levels anddifferent badge display styles can be established. For example, acorresponding relationship can be established between an application ofthe highest priority level and badge display styles including: a firstcolor, red (which may be more distinguishing than other colors), as abackground color of the badge, a second color, black, as a color of acharacter in the badge, a first shape, rhombus, as a shape of the badge,and a first typeface, Song typeface, as a font of a character in thebadge. The step 402 may further include: setting a color of the badgeborder corresponding to the application having the highest prioritylevel as grey, setting a width of the corresponding badge border asfour-pixel width, and setting a shape of the corresponding badge borderas rhombus.

Third, the display element of a badge of the icon can be determinedaccording to the preset corresponding relationship.

In step S403, a badge is generated and displayed at a preset position ofthe icon, according to the determined display element. For example, whengenerating a badge of an application of the highest priority level, thefirst color can be used as the background color of the badge, the secondcolor can be used as the color of a character in the badge, the firstshape, e.g., rhombus, can be used as the shape of the badge, and thefirst typeface, e.g., Song typeface, can be used as the font of thecharacter in the badge. The step S403 may further include: whengenerating the badge of the application having the highest prioritylevel, using grey as the color of the badge border, using four-pixelwidth as the width of the badge border, and using rhombus as the shapeof the badge border.

As described, badges having different display elements may be used forvarious applications according to their application priority levels.

FIG. 5 is a flow chart of a method 500 for displaying a badge of anicon, according to an exemplary embodiment. As shown in FIG. 5, themethod 500 for displaying a badge of an icon may be implemented by aterminal device such as a mobile phone, a camera, a tablet, or anapplication, and may include the following steps S501-S503.

In step S501, when generating a badge of an icon, a feature color of theicon is acquired. In the step, the icon may be an application icon, anapplication folder icon, or another type of icon. Accordingly, the badgeof the icon may be a badge of the application icon, a badge of theapplication folder icon, or a badge of another type of icon.

In step S502, the feature color is used as a background color of thebadge; and/or as a color of a character in the badge. In one embodiment,the display element may include the background color of the badge and/orthe color of a character in the badge. For example, a color valueappearing most frequently can be used as a representative color, and therepresentative color can be designated as a color of a lower layer ofthe badge (background).

In step S503, a badge is generated and displayed at a preset position ofthe icon, according to the determine display element.

In one embodiment, different display styles may be employed fordifferent application badges according to the feature colors of theapplication icons.

In one embodiment, the step S501 may further include:

acquiring a most frequently appearing color value among color values ofall pixels of the icon, and using the acquired color value as thefeature color of the icon.

In some embodiments, the icon may be an application icon, e.g., theapplication corresponding to the icon can be an application program. Amost frequently appearing color value can be used as a representativecolor, and the representative color can be designated as a color of thelower layer of the badge (background), or as a color of a character inthe badge.

In one embodiment, the step S501 may further include: averaging colorvalues of pixels with similar colors in image files of the icon, andusing the averaged value as the feature color of the icon.

In some embodiments, the icon can be an application icon, e.g., theapplication corresponding to the icon can be an application program, andthe icon mainly comprises gradient colors. That is, the icon may mostlycomprise similar gradient colors, with a small number of pixels havingthe same color, and a large number of pixels having similar colors.

In one embodiment, when an application corresponding to the icon is anapplication folder, as shown in FIG. 6, the step S501 may include thefollowing steps.

In step 601, all image files of all application icons in an applicationfolder are acquired.

In step 602, a most frequently appearing color value of all pixels inall the image files is used as a feature color of an icon.

In some embodiments, the icon can be an application folder, e.g., theapplication corresponding to the icon is an application folder. A mostfrequently appearing color value can be used as a representative color,and the representative color can be designated as a color of the lowerlayer of the badge (background), or as a color of a character in thebadge.

In one embodiment, when an application corresponding to the icon is anapplication folder, as shown in FIG. 7, the step S501 may include thefollowing steps.

In step 701, all image files of all application icons in an applicationfolder are acquired.

In step 702, color values of pixels with similar colors among all thepixels in the image files are averaged, and the averaged value is usedas a feature color of an icon.

In some embodiments, the icon can be an application folder, e.g., theapplication corresponding to the icon can be an application folder, andthe icon mainly comprises gradient colors. That is, the icon may mostlycomprise similar gradient colors, with a small number of pixels havingthe same color, and a large number of pixels having similar colors.

In some embodiments, a method for displaying a badge of an icon can helpusers to overcome visual fatigue of desktop badges. Since the color ofthe badge can be automatically changed according to the color of theapplication icon, there can be no more monotonous badges having a singlecolor on the desktop. Instead, various badge colors in accordance withthe corresponding applications can ease the visual fatigue.

If the APP (application program) icon is directly displayed on thedesktop, the method may include the following steps.

In step 1, a system selects colors according to an icon of anapplication on the desktop. For example, the system may read an imagefile of an icon of an application, analyze, and obtain a most frequentlyappearing color value among color values of all pixels in the imagefile. The color value can be returned as a result of a color selection,of a representative color, from the application icon. The system maycomprise a processor and a non-transitory computer-readable storagemedium storing instructions that, when executed by the process, causethe system to perform step 1 and step 2.

In step 2, the system designates the selected color as a color of alower layer of the application badge. The system may also add a whiteborder having a three-pixel width for the badge as a badge border. Thatis, because a representative color of the colors of the application iconis used in the badge, a border may be added on the periphery of thebadge to distinguish the badge.

The method may have the following advantageous effects.

The method can reduce visual fatigue caused by monotonous badges, andcan improve notification efficiency and user experience.

Moreover, the application scenario can optimize badge color systems toprovide badges with different colors according to different features ofthe application programs.

FIG. 8 is a block diagram illustrating a device 800 for displaying abadge of an icon, according to an exemplary embodiment, including: anacquisition module 81 configured to, when generating a badge of an icon,acquire feature information of the icon; a determination module 82configured to determine a display element of the badge according to theacquired feature information of the icon; and a display module 83configured to generate and display a badge at a preset position of theicon, according to the determined display element.

The acquisition module 81 can be configured to, when generating a badgeof an icon, acquire an application type corresponding to the icon.

The determination module 82 can be configured to determine a displayelement corresponding to an application type according to a presetcorresponding relationship between the application type and the displayelement.

In one embodiment, the acquisition module 81 can be configured to, whengenerating a badge of an icon, acquire a priority level of anapplication corresponding to the icon.

The determination module 82 can be configured to determine a displayelement corresponding to the priority level of the application accordingto a preset corresponding relationship between the priority level of theapplication and the display element.

In one embodiment, the acquisition module 81 can be configured to, whengenerating a badge of an icon, acquire a feature color of the icon.

The determination module 82 can be configured to use the feature coloras a background color of the badge, and/or as a color of a character inthe badge.

In one embodiment, as shown in FIG. 9, the acquisition module 81 mayinclude:

a first feature color acquisition submodule 811 configured to, whengenerating a badge of an icon, acquire a most frequently appearing colorvalue among the color values of all pixels in an image file of the icon,and use the acquired color value as a feature color of the icon.

In one embodiment, as shown in FIG. 9, the acquisition module 81 mayfurther include: a second feature color acquisition submodule 812configured to, when generating a badge of an icon, average the colorvalues of pixels with similar colors among all the pixels in the imagefile of the icon, and use the averaged value as the feature color of theicon.

In one embodiment, when an application corresponding to the icon is anapplication folder, as shown in FIG. 10, the acquisition module 81includes: a first image acquisition submodule 813 configured to, whengenerating a badge of an icon, acquire all image files of allapplication icons in the application folder; and a third feature coloracquisition submodule 814 configured to use a color value having ahighest occurrence number among the color values of all pixels in allthe image files as the feature color of the icon.

In one embodiment, when an application corresponding to the icon is anapplication folder, as shown in FIG. 11, the acquisition module 81includes: a second image acquisition submodule 815 configured to, whengenerating a badge of an icon, acquire all image files of allapplication icons in the application folder; and a fourth feature coloracquisition submodule 816 configured to average the color values ofpixels with similar colors among all the pixels in the image files, anduse the averaged value as the feature color of the icon.

The determination module 82 may be configured to: determine one or moreof a shape of the badge, a background color of the badge, a color of acharacter in the badge, and a font of a character in the badge accordingto the feature information of the icon.

The display module 83 may be further configured to generate and displaya badge border for the badge.

Detailed operations for individual modules have been described in detailin the embodiments regarding corresponding methods.

FIG. 12 is a block diagram of a device 1200 for displaying applicationbadge, according to an exemplary embodiment. The device 1200 can be aterminal device. For example, the device 1200 may be a mobile phone, acomputer, a digital broadcast terminal, a messaging device, a gamingconsole, a tablet, a medical device, exercise equipment, a personaldigital assistant, and the like.

Referring to FIG. 12, the device 1200 may include one or more of thefollowing components: a processing component 1202, a memory 1204, apower component 1206, a multimedia component 1208, an audio component1210, an input/output (I/O) interface 1212, a sensor component 1214, anda communication component 1216.

The processing component 1202 may control overall operations of thedevice 1200, such as the operations associated with display, telephonecalls, data communications, camera operations, and recording operations.The processing component 1202 may include one or more processors 1220 toexecute instructions to perform all or part of the steps in the abovedescribed methods. Moreover, the processing component 1202 may includeone or more modules which facilitate the interaction between theprocessing component 1202 and other components. For instance, theprocessing component 1202 may include a multimedia module to facilitatethe interaction between the multimedia component 1208 and the processingcomponent 1202.

The memory 1204 may be non-transitory computer-readable and configuredto store various types of data to support the operation of the device1200. Examples of such data include instructions for any applications ormethods operated on the device 1200, contact data, phonebook data,messages, images, video, etc. The memory 1204 may be implemented usingany type of volatile or non-volatile memory devices, or a combinationthereof, such as a static random access memory (SRAM), an electricallyerasable programmable read-only memory (EEPROM), an erasableprogrammable read-only memory (EPROM), a programmable read-only memory(PROM), a read-only memory (ROM), a magnetic memory, a flash memory, amagnetic or optical disk.

The power component 1206 may provide power to various components of thedevice 1200. The power component 1206 may include a power managementsystem, one or more power sources, and any other components associatedwith the generation, management, and distribution of power in the device1200.

The multimedia component 1208 may include a screen providing an outputinterface between the device 1200 and the user. In some embodiments, thescreen may include a liquid crystal display (LCD) and a touch panel(TP). If the screen includes the touch panel, the screen may beimplemented as a touch screen to receive input signals from the user.The touch panel includes one or more touch sensors to sense touches,swipes, and gestures on the touch panel. The touch sensors may not onlysense a boundary of a touch or swipe action, but also sense a period oftime and a pressure associated with the touch or swipe action. In someembodiments, the multimedia component 1208 may include a front cameraand/or a rear camera. The front camera and/or the rear camera mayreceive an external multimedia datum while the device 1200 is in anoperation mode, such as a photographing mode or a video mode. Each ofthe front camera and the rear camera may be a fixed optical lens systemor have focus and optical zoom capability.

The audio component 1210 may be configured to output and/or input audiosignals. For example, the audio component 1210 may include a microphone(“MIC”) configured to receive an external audio signal when the device1200 is in an operation mode, such as a call mode, a recording mode, anda voice recognition mode. The received audio signal may be furtherstored in the memory 1204 or transmitted via the communication component1216. In some embodiments, the audio component 1210 may further includea speaker to output audio signals.

The I/O interface 1212 may provide an interface between the processingcomponent 1202 and peripheral interface modules, such as a keyboard, aclick wheel, buttons, and the like. The buttons may include, but are notlimited to, a home button, a volume button, a starting button, and alocking button.

The sensor component 1214 may include one or more sensors to providestatus assessments of various aspects of the device 1200. For instance,the sensor component 1214 may detect an open/closed status of the device1200, relative positioning of components, e.g., the display and thekeypad, of the device 1200, a change in position of the device 1200 or acomponent of the device 1200, a presence or absence of user contact withthe device 1200, an orientation or an acceleration/deceleration of thedevice 1200, and a change in temperature of the device 1200. The sensorcomponent 1214 may include a proximity sensor configured to detect thepresence of nearby objects without any physical contact. The sensorcomponent 1214 may also include a light sensor, such as a CMOS or CCDimage sensor, for use in imaging applications. In some embodiments, thesensor component 1214 may also include an accelerometer sensor, agyroscope sensor, a magnetic sensor, a pressure sensor, or a temperaturesensor.

The communication component 1216 may be configured to facilitatecommunication, wired or wirelessly, between the device 1200 and otherdevices. The device 1200 can access a wireless network based on acommunication standard, such as WiFi, 2G, or 3G, or a combinationthereof. In one exemplary embodiment, the communication component 1216may receive a broadcast signal or broadcast associated information froman external broadcast management system via a broadcast channel. In oneexemplary embodiment, the communication component 1216 may furtherinclude a near field communication (NFC) module to facilitateshort-range communications. For example, the NFC module may beimplemented based on a radio frequency identification (RFID) technology,an infrared data association (IrDA) technology, an ultra-wideband (UWB)technology, a Bluetooth (BT) technology, and other technologies.

In exemplary embodiments, the device 1200 may be implemented with one ormore application specific integrated circuits (ASICs), digital signalprocessors (DSPs), digital signal processing devices (DSPDs),programmable logic devices (PLDs), field programmable gate arrays(FPGAs), controllers, micro-controllers, microprocessors, or otherelectronic components, for performing the above described methods.

In exemplary embodiments, there is also provided a non-transitorycomputer-readable storage medium including instructions, such asincluded in the memory 1204, executable by the processor 1220 in thedevice 1200, for performing the above-described methods. For example,the non-transitory computer-readable storage medium may be a ROM, a RAM,a CD-ROM, a magnetic tape, a floppy disc, an optical data storagedevice, and the like.

It should be understood by those skilled in the art that the abovedescribed modules can each be implemented through hardware, or software,or a combination of hardware and software. One of ordinary skill in theart will also understand that multiple ones of the above describedmodules may be combined as one module, and each of the above describedmodules may be further divided into a plurality of sub-modules.

Other embodiments of the invention will be apparent to those skilled inthe art from consideration of the specification and practice of theinvention disclosed here. This application is intended to cover anyvariations, uses, or adaptations of the invention following the generalprinciples thereof and including such departures from the presentdisclosure as come within known or customary practice in the art. It isintended that the specification and examples be considered as exemplaryonly, with a true scope and spirit of the invention being indicated bythe following claims.

It will be appreciated that the present invention is not limited to theexact construction that has been described above and illustrated in theaccompanying drawings, and that various modifications and changes can bemade without departing from the scope thereof. It is intended that thescope of the invention only be limited by the appended claims.

What is claimed is:
 1. A method for displaying a badge of an icon,comprising: acquiring feature information of the icon; determining adisplay element of the badge according to the acquired featureinformation; and generating and displaying the badge according to thedetermined display element, at a preset position of the icon.
 2. Themethod according to claim 1, wherein: acquiring the feature informationof the icon comprises acquiring an application type corresponding to theicon; and determining the display element of the badge according to theacquired feature information comprises determining the display elementcorresponding to the acquired application type according to a presetcorresponding relationship between the acquired application type and thedisplay element.
 3. The method according to claim 1, wherein: acquiringthe feature information of the icon comprises acquiring a priority levelof an application corresponding to the icon; and determining the displayelement of the badge according to the acquired feature informationcomprises determining the display element corresponding to the acquiredpriority level of the application according to a preset correspondingrelationship between the acquired priority level of the application andthe display element.
 4. The method according to claim 1, wherein:acquiring the feature information of the icon comprises acquiring afeature color of the icon; and determining the display element of thebadge according to the acquired feature information comprises using thefeature color as a background color of the badge. and/or as a color of acharacter in the badge.
 5. The method according to claim 4, whereinacquiring the feature color of the icon comprises at least one of:acquiring a most frequently appearing color value among color values ofall pixels in an image file of the icon, and using the acquired colorvalue as the feature color of the icon; or averaging color values ofpixels with similar colors among all pixels in an image file of theicon, and using the averaged value as the feature color of the icon. 6.The method according to claim 4, wherein: an application correspondingto the icon is an application folder; and acquiring the feature color ofthe icon comprises at least one of: acquiring all image files of allapplication icons in the application folder, and using a most frequentlyappearing color value among color values of all pixels in all the imagefiles as the feature color of the icon, or acquiring all image files ofall application icons in the application folder; and averaging colorvalues of pixels with similar colors among all pixels in the imagefiles, and using the averaged value as the feature color of the icon. 7.The method according to claim 1, wherein determining the display elementof the badge according to the acquired feature information comprises:determining at least one of a shape of the badge, a background color ofthe badge, a color of a character in the badge, or a font of a characterin the badge according to the acquired feature information.
 8. Themethod according to claim 1, wherein generating and displaying thebadge, according to the determined display element, at the presetposition of the icon comprises: generating and displaying a badge borderfor the badge.
 9. The method according to claim 8, wherein determiningthe display element of the badge according to the acquired featureinformation further comprises: determining at least one of a color ofthe badge border, a width of the badge border, or a shape of the badgeborder according to the acquired feature information.
 10. A device fordisplaying a badge of an icon, comprising: a processor; and a memory forstoring instructions executable by the processor; wherein the processoris configured to: acquire feature information of the icon; determine adisplay element of the badge according to the acquired featureinformation; and generate and display the badge, according to thedetermined display element, at a preset position of the icon.
 11. Thedevice according to claim 10, wherein the processor is furtherconfigured to: acquire an application type corresponding to the icon;and determine the display element corresponding to the acquiredapplication type according to a preset corresponding relationshipbetween the acquired application type and the display element.
 12. Thedevice according to claim 10, wherein the processor is furtherconfigured to: acquire a priority level of an application correspondingto the icon; and determine a display element corresponding to theacquired priority level of the application according to a presetcorresponding relationship between the acquired priority level of theapplication and the display element.
 13. The device according to claim10, wherein the processor is further configured to: acquire a featurecolor of the icon; and use the feature color as a background color ofthe badge, and/or as a color of a character in the badge.
 14. The deviceaccording to claim 13, wherein the processor is further configured toperform at least one of: acquiring a most frequently appearing colorvalue among color values of all pixels in an image file of the icon, andusing the acquired color as the feature color of the icon; or averagingcolor values of pixels with similar colors among all pixels in an imagefile of the icon, and using the averaged value as the feature color ofthe icon.
 15. The device according to claim 13, wherein: an applicationcorresponding to the icon is an application folder; and the processor isfurther configured to: acquire all image files of all application iconsin the application folder; and use a most frequently appearing colorvalue among color values of all pixels in all the image files as thefeature color of the icon.
 16. The device according to claim 13,wherein: an application corresponding to the icon is an applicationfolder; and the instructions further cause the processor to: acquire allimage files of all application icons in the application folder; andaverage color values of pixels with similar colors among all pixels inall image files, and use the averaged value as the feature color of theicon.
 17. The device according to claim 10, wherein the processor isfurther configured to: determine at least one of a shape of the badge, abackground color of the badge, a color of a character in the badge, or afont of a character in the badge according to the acquired featureinformation.
 18. The device according to claim 17, wherein the processoris further configured to: generate and display a badge border for thebadge.
 19. A non-transitory computer-readable storage medium havingstored therein instructions that, when executed by a processor in aterminal device, cause the terminal device to perform a method fordisplaying a badge of an icon, the method comprising: acquiring featureinformation of the icon; determining a display element of the badgeaccording to the acquired feature information; and generating anddisplaying the badge, according to the determined display element, at apreset position of the icon.